all: pcap-app

pcap-app: libpcap_app.o print_utilities.o management_functions.o
	gcc libpcap_app.o print_utilities.o management_functions.o -lpcap -o pcap-app

libpcap_app.o: libpcap_app.c
	gcc -Wall -c libpcap_app.c

print_utilities.o: print_utilities.c
	gcc -Wall -c print_utilities.c

management_functions.o: management_functions.c
	gcc -Wall -c management_functions.c

clean:
	rm -rf *.o pcap-app

